package com.dragon.modules.yuegou.entity.product;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.product.LimitSalesRecordStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 限时折扣下单记录表实体类<br>
 * 对应的表为：pro_limit_sales_record<br>
 * 
 * @author ljf
 * @date 2019-07-29 16:30:44
 * @company sgy
 * @version 2.0
 */
@TableName("pro_limit_sales_record")
@ApiModel(description = "限时折扣下单记录表")
public class LimitSalesRecordEntity {

    /**  */
	protected String id;

    /**  */
	protected String limitSalesId;

    /**  */
	protected String busdId;

    /** 购买的日期 */
	@ApiModelProperty("购买的日期")
	protected LocalDateTime buyTime;

    /** [枚举]状态：0-待支付-UNPAID、1-未支付-NONPAY、2-已支付-PAID */
	@ApiModelProperty("[枚举]状态：0-待支付-UNPAID、1-未支付-NONPAY、2-已支付-PAID")
	protected LimitSalesRecordStatus status;

    /**  */
	protected String memberId;

    /**  */
	protected String orderNo;

	/**
	 * 构造一个空限时折扣下单记录表实体对象
	 */
	public LimitSalesRecordEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个限时折扣下单记录表实体对象
	 * 
	 * @param other 其它对象
	 */
	public LimitSalesRecordEntity(LimitSalesRecordEntity other){
		super();
     	this.id = other.id;
     	this.limitSalesId = other.limitSalesId;
     	this.busdId = other.busdId;
     	this.buyTime = other.buyTime;
     	this.status = other.status;
     	this.memberId = other.memberId;
     	this.orderNo = other.orderNo;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取
	 * 
	 * @return limitSalesId 
	 */
	public String getLimitSalesId() {
		return limitSalesId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param limitSalesId 
	 */
	public void setLimitSalesId(String limitSalesId) {
		this.limitSalesId = limitSalesId;
	}

	/**
	 * 获取
	 * 
	 * @return busdId 
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param busdId 
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取购买的日期
	 * 
	 * @return buyTime 购买的日期
	 */
	public LocalDateTime getBuyTime() {
		return buyTime;
	}
  	
	/**
	 * 设置购买的日期
	 * 
	 * @param buyTime 购买的日期
	 */
	public void setBuyTime(LocalDateTime buyTime) {
		this.buyTime = buyTime;
	}

	/**
	 * 获取[枚举]状态：0-待支付-UNPAID、1-未支付-NONPAY、2-已支付-PAID
	 * 
	 * @return status [枚举]状态：0-待支付-UNPAID、1-未支付-NONPAY、2-已支付-PAID
	 */
	public LimitSalesRecordStatus getStatus() {
		return status;
	}
  	
	/**
	 * 设置[枚举]状态：0-待支付-UNPAID、1-未支付-NONPAY、2-已支付-PAID
	 * 
	 * @param status [枚举]状态：0-待支付-UNPAID、1-未支付-NONPAY、2-已支付-PAID
	 */
	public void setStatus(LimitSalesRecordStatus status) {
		this.status = status;
	}

	/**
	 * 获取
	 * 
	 * @return memberId 
	 */
	public String getMemberId() {
		return memberId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param memberId 
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取
	 * 
	 * @return orderNo 
	 */
	public String getOrderNo() {
		return orderNo;
	}
  	
	/**
	 * 设置
	 * 
	 * @param orderNo 
	 */
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

    public String toString() {
		return new StringBuilder().append("LimitSalesRecordEntity{").
			append("id=").append(id).
			append(",limitSalesId=").append(limitSalesId).
			append(",busdId=").append(busdId).
			append(",buyTime=").append(buyTime).
			append(",status=").append(status).
			append(",memberId=").append(memberId).
			append(",orderNo=").append(orderNo).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public LimitSalesRecordEntity copy() {
		return new LimitSalesRecordEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /**  */
	public static final String COL_LIMIT_SALES_ID = "limit_sales_id";

    /**  */
	public static final String COL_BUSD_ID = "busd_id";

    /** 购买的日期 */
	public static final String COL_BUY_TIME = "buy_time";

    /** [枚举]状态：0-待支付-UNPAID、1-未支付-NONPAY、2-已支付-PAID */
	public static final String COL_STATUS = "status";

    /**  */
	public static final String COL_MEMBER_ID = "member_id";

    /**  */
	public static final String COL_ORDER_NO = "order_no";
}
